package com.clouds.wms.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.clouds.wms.bean.Salma;
import com.clouds.wms.dao.SalmaDao;
import com.clouds.wms.exception.SysException;
import com.clouds.wms.util.PagesBean;

@Service("salmaService")
public class SalmaServiceImpl implements SalmaService {
	@Resource(name="salmaDao")
	private SalmaDao salmaDao;

	@Override
	public PagesBean getSalmaList(String maaa, String maab, String maac,String startMaad, String endMaad, int offset, int pageSize)	throws SysException {
		return salmaDao.getSalmaList(maaa, maab, maac, startMaad, endMaad, offset, pageSize);
	}

	@Override
	public Salma getSalma(String maaa,String maab) throws SysException {
		return salmaDao.getSalma(maaa,maab);
	}

	@Override
	public int saveSalma(Salma salma) throws SysException {
		return salmaDao.saveSalma(salma);
	}
	
}
